﻿/// <reference path="../Libriries/jquery-2.0.3.js" />
/// <reference path="../Libriries/q.js" />

var buildAsync = function () {
    var promise = Q.defer();

    //TODO: realize async build of resources
}

//function that gets the ip of the client (not tested with other clients)
//function myIP() {
//    if (window.XMLHttpRequest) {
//        xmlhttp = new XMLHttpRequest();
//    }
//    else {
//        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
//    }

//    xmlhttp.open("GET", "http://api.hostip.info/get_html.php", false);
//    xmlhttp.send();

//    hostipInfo = xmlhttp.responseText.split("\n");

//    for (i = 0; hostipInfo.length >= i; i++) {
//        ipAddress = hostipInfo[i].split(":");
//        if (ipAddress[0] == "IP") return ipAddress[1];
//    }

//    return false;
//}